package org.example.dao.impl;

import org.example.dao.BookDao;

public class BookDaoImpl implements BookDao {
    private int connectionNum;
    private String databaseName;

    public void setConnectionNum(int connectionNum) {
        this.connectionNum = connectionNum;
    }

    public void setDatabaseName(String databaseName) {
        this.databaseName = databaseName;
    }

    @Override
    public void save() {
        System.out.println("BookDaoImpl-save.." + ",connectionNum: " + connectionNum + ",databaseName: " + databaseName);
    }
    //表示Bean初始化对应的操作
//    public void init(){
//        System.out.println("BookDaoImpl-init...");
//    }
    //表示Bean销毁前对应的操作
//    public void destroy(){
//        System.out.println("BookDaoImpl-destroy...");
//    }
}
